<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Examat</title>
    </h:head>
    <h:body>
    <h:form id="frmRegistro">
        <h1>Registro para pruebas</h1>
        <p>Todos los campos son requeridos</p>
        Tipo:
        <h:selectOneRadio id="rbTipo" value="#{registroController.tipo}" required="true" >
            <f:selectItem itemValue="profesor" itemLabel="Profesor" />
            <f:selectItem itemValue="alumno" itemLabel="Alumno" />
        </h:selectOneRadio>
        Nombre:
        <h:inputText id="txtNombre" value="#{registroController.nombre}" required="true" />
        <br />
        Apellido Paterno:
        <h:inputText id="txtAPaterno" value="#{registroController.APaterno}" required="true" />
        <br />
        Apellido Materno:
        <h:inputText id="txtAMaterno" value="#{registroController.AMaterno}" required="true" />
        <br />
        Email:
        <h:inputText id="txtEmail" value="#{registroController.email}" required="true">
            <f:validateBean for="txtEmail" />
        </h:inputText>
        <br />
        Clave &Uacute;nica: 
        <h:inputText id="txtClaveUnica" label="Clave &Uacute;nica" value="#{registroController.claveUnica}" required="true" />
        <br />
        Password:
        <h:inputSecret id="txtPassword1" value="#{registroController.password1}" required="true" />
        <br />
        Confirma tu Password: 
        <h:inputSecret id="txtPassword2" value="#{registroController.password2}" required="true" />
<!--        <h:inputHidden id="chkPasswords" value="#{registroController.passwordsIguales}">
            <f:validateBean for="chkPasswords" />
        </h:inputHidden>-->
        <br />
        <h:commandButton id="btnRegistrar" value="Registrame" action="#{registroController.registra()}" />
        <div>#{registroController.message}</div>
    </h:form>
    </h:body>
</html>

